from google.appengine.ext import db
import Account

# Class Shift: timeframe (list of blocks), assignment (NULL until closed), up 
# for grabs, sub, list of available users' keys, key
# Short - sh
class Shift(db.Model):
	# Time is more complicated. So day 1 = Sunday
	day = db.IntegerProperty()
	# I used floats so we can use 0.5. 
	startTime = db.FloatProperty()
	endTime = db.FloatProperty()
	availAccounts = db.ListProperty(db.Key)
	# assignment = db.ReferenceProperty(Account, collection_name="shift_assignment_set")
	# "I have tenure. That means I can say whatever the hell I want to say." -ALK 2/8/12 
	# sub = db.ReferenceProperty(Account, collection_name="shift_sub_set")
	up4grab =  db.BooleanProperty()

